//#include "SpreadsheetCellCtors.h"
//#include <iostream>
//#include <sstream>
//using namespace std;
//
//
////1
//SpreadsheetCell::SpreadsheetCell():mValue(0),mString("")
//{
//}
//////2
////SpreadsheetCell::SpreadsheetCell()
////{
////	mValue = 0;
////	mString = "";
////}
//SpreadsheetCell::SpreadsheetCell(double initialValue)
//{
//	setValue(initialValue);
//}
//
////1
//SpreadsheetCell::SpreadsheetCell(string initialValue) :
//	mValue(stringToDouble(initialValue)), mString(initialValue)
//{}
////2
////SpreadsheetCell::SpreadsheetCell(string initialValue)
////{
////	setString(initialValue);
////}
//
//SpreadsheetCell::SpreadsheetCell(const string& instring):mValue(stringToDouble(instring)),
//mString(instring)
//{}
//
//SpreadsheetCell::SpreadsheetCell(const SpreadsheetCell& src):
//	mValue(src.mValue),mString(src.mString)
//{}
//
//void SpreadsheetCell::setValue(double inValue)
//{
//	mValue = inValue;
//	mString = doubleToString(mValue);
//}
//
//double SpreadsheetCell::getValue() const
//{
//	return mValue;
//}
//
//void SpreadsheetCell::setString(const string& inString)
//{
//	mString = inString;
//	mValue = stringToDouble(mString);
//}
//
//string SpreadsheetCell::getString() const
//{
//	return mString;
//}
//
//string SpreadsheetCell::doubleToString(double inValue) const
//{
//	ostringstream ostr;
//	ostr << inValue;
//	return ostr.str();
//}
//
//double SpreadsheetCell::stringToDouble(const string& inString) const
//{
//	double temp;
//	istringstream istr(inString);
//	istr >> temp;
//	if (istr.fail() || !istr.eof()) {
//		return 0;
//	}
//	return temp;
//}
//
